package com.sq.partner.manager.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.DictManagerDao;
import com.sq.partner.manager.mybatis.model.DictDto;
import com.sq.partner.manager.service.DictManagerService;
import com.sq.partner.manager.util.Page;
@Service
public class DictManagerServiceImpl implements DictManagerService {

	/***
	 * 查询列表
	 */
	@Resource
	private DictManagerDao dictManagerDao;
	public Page<DictDto> queryDictDtoPageByCriteria(Page<DictDto> page)
			throws Exception {

		return dictManagerDao.queryDictDtoPageByCriteria(page);
	}
	
	//更新字典條款
	@Override
	public void updateGatewayDict(DictDto dict) throws Exception {
		
		 dictManagerDao.updateGatewayDict(dict);
	}

	@Override
	public void insertGatewayDict(DictDto dict) throws Exception {
		dictManagerDao.insertGatewayDict(dict);
		
	}

	@Override
	public void deleteGatewayDict(DictDto dict) throws Exception {
		dictManagerDao.deleteGatewayDict(dict);
		
	}

	@Override
	public DictDto queryDictDtoPageByInstance(DictDto dict) throws Exception {
		return dictManagerDao.queryDictDtoPageByInstance(dict);
		
	}

	@Override
	public Page<DictDto> querySchoolConfigList(Page<DictDto> page) throws Exception {
		return dictManagerDao.querySchoolConfigList(page);
	}


}
